![]() |
CustomAndroidAPI 1.44
|
Public Member Functions | |
| void | close () throws CustomException |
| int | getCommPortType () throws CustomException |
| boolean | isPrintAvailable () |
| boolean | isScannerAvailable () |
| boolean | isVeriprintAvailable () |
| boolean | isPrinterOnline () throws CustomException |
| int | getPrinterId () throws CustomException |
| String | getFirmwareVersion () throws CustomException |
| String | getAPIVersion () throws CustomException |
| byte[] | getPrinterFullStatusBuffer () throws CustomException |
| String | getDeviceInformation (int dinfoType) throws CustomException |
| String | getBatteryInformation (int binfoType) throws CustomException |
| PrinterStatus | getPrinterFullStatus () throws CustomException |
| String | getPrinterName () |
| String | getPrinterInfo () |
| int | getPageWidth () |
| void | setPageWidth (int iNewPageWith) throws CustomException |
| int | getResolution () |
| long | getReadTimeout () throws CustomException |
| void | setReadTimeout (int msecs) throws CustomException |
| long | getWriteTimeout () throws CustomException |
| void | setWriteTimeout (int msecs) throws CustomException |
| void | clearReadBuffer () throws CustomException |
| int[] | readData () throws CustomException |
| void | writeData (int[] data) throws CustomException |
| void | writeData (int[] data, int offset, int nBytes) throws CustomException |
| void | writeData (byte[] data) throws CustomException |
| void | writeData (byte[] data, int offset, int nBytes) throws CustomException |
| void | ignoreWhiteImages (boolean bIgnore) throws CustomException |
| void | setGrModeToBlackWhite (int iGrModeType, int[] iArgs) throws CustomException |
| void | setPageModeToRoll (boolean bRollMode) throws CustomException |
| void | printText (String text, int pixel_la, int pixel_w, PrinterFont font) throws CustomException |
| void | printTextLF (String text, int pixel_la, int pixel_w, PrinterFont font) throws CustomException |
| void | printText (String text, PrinterFont font) throws CustomException |
| void | printTextLF (String text, PrinterFont font) throws CustomException |
| void | printText (String text) throws CustomException |
| void | printTextLF (String text) throws CustomException |
| boolean | printImage (Bitmap image, int left_align, int widthOption, int width) throws CustomException |
| boolean | printImage (Bitmap image) throws CustomException |
| void | printBarcode (String brcText, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
| void | printBarcode (byte[] brcData, int nBytes, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
| void | printBarcode2D (String brcText, int brcType, int brcJustification, int brcWidth) throws CustomException |
| void | printBarcode2D (byte[] brcData, int nBytes, int brcType, int brcJustification, int brcWidth) throws CustomException |
| void | feed (int nFeeds) throws CustomException |
| void | cut (int cutType) throws CustomException |
| void | eject (int ejectType) throws CustomException |
| void | ejectWithTimeout (int ejectType, int dwTimeOutms) throws CustomException |
| void | present (int presentMM) throws CustomException |
| void | align (int alignType) throws CustomException |
| void | openCashDrawer (int drawerType, int dwTimeOn, int dwTimeOff) throws CustomException |
| void | resetHardware () throws CustomException |
| void | clearPrinterQueue () throws CustomException |
| void | transactionPrint (int tpMode) throws CustomException |
| byte[] | scannerGetFullStatusBuffer () throws CustomException |
| ScannerStatus | scannerGetFullStatus () throws CustomException |
| void | scannerCleanBuffers () throws CustomException |
| void | scannerFeeder (int iFeeder) throws CustomException |
| ScannerImage | scannerGetImage (int iImageType, boolean bCropImage) throws CustomException |
| Bitmap | scannerGetImageVeriprint () throws CustomException |
| byte[] | scannerGetBarcode () throws CustomException |
| boolean | scannerPrintBarcodeAndVerify (String brcText, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
| boolean | scannerPrintBarcodeAndVerify (byte[] brcData, int nBytes, int brcType, int brcHriType, int brcJustification, int brcWidth, int brcHeight) throws CustomException |
| ScannerCardData | scannerGetCardData () throws CustomException |
| int | scannerGetImageScannedID () throws CustomException |
| void | scannerSetSearchType (int iSearchTypes, boolean bSaveOnlyToRam) throws CustomException |
| void | scannerSetEndScanMovement (int iAutoMType) throws CustomException |
| void | scannerEject (int iEjectType) throws CustomException |
| void | scannerVoidTicket (Bitmap image, int iOffsetMM) throws CustomException |
| void | scannerVoidBarcode (Bitmap image) throws CustomException |
| int[] | scannerGetThresholds () throws CustomException |
| void | scannerSetThresholds (int ithHW, int ithSW) throws CustomException |
| boolean | scannerProgramTickets (byte[] bBufferRicketsFile, boolean bSaveOnlyToRam) throws CustomException |
Static Public Attributes | |
| static final int | COMMTYPE_BLUETOOTH = 0 |
| static final int | COMMTYPE_ETHERNET = 1 |
| static final int | COMMTYPE_USB = 2 |
| static final int | COMMTYPE_COM = 3 |
| static final int | COMMTYPE_BLUETOOTH_LE = 4 |
| static final int | IMAGE_SCALE_NONE = 0 |
| static final int | IMAGE_SCALE_TO_FIT = 1 |
| static final int | IMAGE_SCALE_TO_WIDTH = 2 |
| static final int | IMAGE_ALIGN_TO_LEFT = 0 |
| static final int | IMAGE_ALIGN_TO_CENTER = -1 |
| static final int | IMAGE_ALIGN_TO_RIGHT = -2 |
| static final int | IMAGE_GRMODE_DITHERING = 0 |
| static final int | IMAGE_GRMODE_THRESHOLD = -1 |
| static final int | CUT_TOTAL = 0 |
| static final int | CUT_PARTIAL = 1 |
| static final int | EJ_EJECT = 0 |
| static final int | EJ_RETRACT = 1 |
| static final int | CASH_DRAWER_1 = 0 |
| static final int | CASH_DRAWER_2 = 1 |
| static final int | BARCODE_TYPE_CODABAR = -1 |
| static final int | BARCODE_TYPE_UPCA = -2 |
| static final int | BARCODE_TYPE_UPCE = -3 |
| static final int | BARCODE_TYPE_EAN13 = -4 |
| static final int | BARCODE_TYPE_EAN8 = -5 |
| static final int | BARCODE_TYPE_CODE39 = -6 |
| static final int | BARCODE_TYPE_ITF = -7 |
| static final int | BARCODE_TYPE_CODE93 = -8 |
| static final int | BARCODE_TYPE_CODE128 = -9 |
| static final int | BARCODE_TYPE_CODE32 = -10 |
| static final int | BARCODE_TYPE_QRCODE = -101 |
| static final int | BARCODE_TYPE_PDF417 = -102 |
| static final int | BARCODE_TYPE_DATAMATRIX = -103 |
| static final int | BARCODE_TYPE_AZTEC = -104 |
| static final int | BARCODE_HRI_NONE = 0 |
| static final int | BARCODE_HRI_TOP = 1 |
| static final int | BARCODE_HRI_BOTTOM = 2 |
| static final int | BARCODE_HRI_TOPBOTTOM = 3 |
| static final int | BARCODE_ALIGN_TO_LEFT = 0 |
| static final int | BARCODE_ALIGN_TO_CENTER = -1 |
| static final int | BARCODE_ALIGN_TO_RIGHT = -2 |
| static final int | PALIGN_PRINT = 0 |
| static final int | PALIGN_CUT = 1 |
| static final int | TP_TRANSACTION_REC = 0 |
| static final int | TP_TRANSACTION_STOP = 1 |
| static final int | TP_TRANSACTION_PRINT = 2 |
| static final int | TP_TRANSACTION_CLEAN = 3 |
| static final int | DINFO_SERIAL_NUMBER = 0 |
| static final int | BINFO_BATTERY_STATE = 0x19 |
| static final int | BINFO_BATTERY_NUMBER_RECHARGE = 0x1A |
| static final int | BINFO_BATTERY_SERIAL_NUMBER = 0x1B |
| static final int | SCANNER_FEEDER_ENABLE = 1 |
| static final int | SCANNER_FEEDER_DISABLE = 0 |
| static final int | SCANNER_IMAGE_GRAY_256 = 1 |
| static final int | SCANNER_IMAGE_BW = 2 |
| static final int | SCANNER_SEARCH_NONE = 0 |
| static final int | SCANNER_SEARCH_TYPE_CARD = 1 |
| static final int | SCANNER_SEARCH_TYPE_BARCODE = 2 |
| static final int | SCANNER_SEARCH_TYPE_CARD_AND_BARCODE = 3 |
| static final int | SCANNER_AUTOM_HOLD = 0x30 |
| static final int | SCANNER_AUTOM_RETRACT = 0x31 |
| static final int | SCANNER_AUTOM_EJECT = 0x32 |
| static final int | SCANNER_EJ_RETRACT = 0x31 |
| static final int | SCANNER_EJ_EJECT = 0x32 |
Protected Attributes | |
| CustomAndroidAPI | capi = null |
Class definition for CUSTOM printers. Defines functionality to print text/image, read/write data to
printer, etc
|
inline |
Sends a Align command to the printer
| alignType | alignment type
|
| CustomException |
|
inline |
Sends a command to clean the print queue on the printer
| CustomException |
|
inline |
Clears the Read Buffer
| CustomException |
|
inline |
Disconnect the link and release attached resources
| CustomException |
|
inline |
Sends a Cut command to the printer
| cutType | cut type
|
| CustomException |
|
inline |
Sends a Eject command to the printer
| ejectType | eject type
|
| CustomException |
|
inline |
Sends a Eject command to the printer
| ejectType | eject type
|
| dwTimeOutms | the time in milliseconds after which the movement is performed. |
| CustomException |
|
inline |
Sends Feeds to the printer
| nFeeds | number of LF to send |
| CustomException |
|
inline |
Current API version
| CustomException |
|
inline |
Returns a information about the battery
| binfoType | Battery information Type
|
| CustomException |
|
inline |
Returns the communication port type
| CustomException |
|
inline |
Returns a information about the device
| dinfoType | Information Type
|
| CustomException |
|
inline |
Sends a get Firmware version command to printer and process the response
| CustomException |
|
inline |
Returns paper width in pixels / dots
|
inline |
Returns the status of the printer
| CustomException |
|
inline |
Returns the status of the printer
| CustomException |
|
inline |
Returns the printer ID
| CustomException |
|
inline |
Returns information about the Printer
|
inline |
Returns name/ type of the Printer
|
inline |
Returns the Read Timeout
| CustomException |
|
inline |
Returns Print resolution
|
inline |
Returns the Write Timeout
| CustomException |
|
inline |
Set if ignore, or not, the white Images
| bIgnore | If is set to true, do not print the totally white Image (default is false). |
| CustomException |
|
inline |
Returns if the printer supports print functions
|
inline |
Returns if the printer is ready or not
| CustomException |
|
inline |
Returns if the printer supports scanner functions
|
inline |
Returns if the printer supports Veriprint functions
|
inline |
Generate pulse on the drawer connector
| drawerType | connector pin type
|
| dwTimeOn | the pulse ON time in milliseconds. |
| dwTimeOff | the pulse OFF time in milliseconds. |
| CustomException |
|
inline |
Sends a present command to the printer
| presentMM | mm of paper to present |
| CustomException |
|
inline |
Sends barcode data to printer to print
| brcData | Barcode Data |
| nBytes | Barcode Data Size |
| brcType | Barcode Type
|
| brcHriType | Barcode HRI (Human Readable Information) Type
|
| brcJustification | Barcode Justification
|
| brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
| brcHeight | Barcode Height |
| CustomException |
|
inline |
Sends barcode string to printer to print
| brcText | Barcode Text |
| brcType | Barcode Type
|
| brcHriType | Barcode HRI (Human Readable Information) Type
|
| brcJustification | Barcode Justification
|
| brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
| brcHeight | Barcode Height |
| CustomException |
|
inline |
Sends barcode 2D data to printer to print
| brcData | Barcode Data |
| nBytes | Barcode Data Size |
| brcType | Barcode Type
|
| brcJustification | Barcode Justification
|
| brcWidth | Barcode external width expressed in dot |
| CustomException |
|
inline |
Sends barcode 2D string to printer to print
| brcText | Barcode Text |
| brcType | Barcode Type
|
| brcJustification | Barcode Justification
|
| brcWidth | Barcode external width expressed in dot |
| CustomException |
|
inline |
Sends the Bitmap data to printer to print fit to paper width
| image | Bitmap image |
| CustomException |
|
inline |
Sends the Bitmap data to printer to print
| image | Bitmap image |
| left_align | the value is > 0, the value is the align Left align in pixel. If is <= 0:
|
| widthOption | Scaling options
|
| width | printed image width in pixel/dots (used only if widthOption=IMAGE_SCALE_TO_WIDTH) |
| CustomException |
|
inline |
Sends the text data to printer to print. It will print data on full page width with 0 margin using the last font attributes
| text | String to print |
| CustomException |
|
inline |
Sends the text data to printer to print
| text | String to print |
| pixel_la | Left align in pixel |
| pixel_w | Print area width in pixel. Pass -1 to use max available print width |
| font | Holds various font attributes |
| CustomException |
|
inline |
Sends the text data to printer to print. It will print data on full page width with 0 margin
| text | String to print |
| font | Holds various font attributes |
| CustomException |
|
inline |
Sends the text data to printer to print and adds a LF at the end. It will print data on full page width with 0 margin using the last font attributes
| text | String to print |
| CustomException |
|
inline |
Sends the text data to printer to print and adds a LF at the end
| text | String to print |
| pixel_la | Left align in pixel |
| pixel_w | Print area width in pixel. Pass -1 to use max available print width |
| font | Holds various font attributes |
| CustomException |
|
inline |
Sends the text data to printer to print and adds a LF at the end. It will print data on full page width with 0 margin
| text | String to print |
| font | Holds various font attributes |
| CustomException |
|
inline |
Read Data Buffer. It will return all available data in buffer. Buffer capacity is 1024 bytes.
| CustomException |
|
inline |
Sends a reset hardware command to the printer
| CustomException |
|
inline |
Clean scanner buffers
| CustomException |
|
inline |
Sends a Eject command to the scanner
| iEjectType | Eject Type
|
| CustomException |
|
inline |
Enable / Disable the scanner feeder
| iFeeder | feeder
|
| CustomException |
|
inline |
Returns the last barcode read
| CustomException |
|
inline |
Returns the last data from card read
| CustomException |
|
inline |
Returns the status of the scanner
| CustomException |
|
inline |
Returns the status of the scanner
| CustomException |
|
inline |
Returns the last scanned image
| iImageType | Image
|
| bCropImage | get the Image cropped |
| CustomException |
|
inline |
Returns the current progressive Image ID
| CustomException |
|
inline |
Returns the last scanned veriprint image
| CustomException |
|
inline |
Returns a buffer of 2 elements with the Threshold HW (1st element) and Threshold SW (2nd element)
| CustomException |
|
inline |
Sends barcode data to printer to print and check it with veriprint scanner
| brcData | Barcode Data |
| nBytes | Barcode Data Size |
| brcType | Barcode Type
|
| brcHriType | Barcode HRI (Human Readable Information) Type
|
| brcJustification | Barcode Justification
|
| brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
| brcHeight | Barcode Height |
| CustomException |
|
inline |
Sends barcode data to printer to print and check it with veriprint scanner
| brcText | Barcode Text |
| brcType | Barcode Type
|
| brcHriType | Barcode HRI (Human Readable Information) Type
|
| brcJustification | Barcode Justification
|
| brcWidth | Barcode Width expressed in dot (referred to the narrowest bar) |
| brcHeight | Barcode Height |
| CustomException |
|
inline |
Programs the tickets to the scanner
| bBufferRicketsFile | buffer with the ticket raw file |
| bSaveOnlyToRam | true if the file is saved ONLY into the RAM |
| CustomException |
|
inline |
Sets the automatic Movement type at the end of the scan
| iAutoMType | Automatic Mouvement Type
|
| CustomException |
|
inline |
Sets the scanner serch types
| iSearchTypes | Search types bitmask |
| bSaveOnlyToRam | true if the value is saved ONLY into the RAM |
| CustomException |
|
inline |
Sets the Threshold HW and Threshold SW
| ithHW | Threshold HW (0<= ithHW <=255) |
| ithSW | Threshold SW (0<= ithSW <=255) |
| CustomException |
|
inline |
Automatically go to the barcode found and prints a image with scanner void printer
| image | Image to Print |
| CustomException |
|
inline |
Prints a image with scanner void printer
| image | Image to Print |
| iOffsetMM | mm offset to do before print |
| CustomException |
|
inline |
Set the graphic conversion mode to Black/White and, if necessary, its arguments
| iGrModeType | graphic conversion mode:
|
| iArgs | optional arguments |
| CustomException |
|
inline |
Set the page mode to Roll.
| bRollMode | If is set to true, the printer prints until the last not white line (default is false). |
| CustomException |
|
inline |
Override the default paper width in pixels / dots with a new value. Check on the device manual the allowed values.
| iNewPageWith | new paper width (pixels / dots) |
| CustomException |
|
inline |
Sets the Read Timeout. It can be between 50-30000 milliseconds.
| msecs | Read Timeout (milliseconds) |
| CustomException |
|
inline |
Sets the Write Timeout. It can be between 50-30000 milliseconds.
| msecs | Write Timeout (milliseconds) |
| CustomException |
|
inline |
Manage the Transaction Print of the device
| tpMode | Transaction control.
|
| CustomException |
|
inline |
Write Data Buffer to printer.
| data | Data Buffer to Write |
| CustomException |
|
inline |
Write Data Buffer to printer.
| data | Data Buffer to Write |
| offset | Data Buffer offset |
| nBytes | number of Bytes to send to printer |
| CustomException |
|
inline |
Write Data Buffer to printer.
| data | Data Buffer to Write |
| CustomException |
|
inline |
Write Data Buffer to printer.
| data | Data Buffer to Write |
| offset | Data Buffer offset |
| nBytes | number of Bytes to send to printer |
| CustomException |
|
static |
Indicates that the Barcode Justification is Center
|
static |
Indicates that the Barcode Justification is Left
|
static |
Indicates that the Barcode Justification is Right
|
static |
Indicates HRI on BOTTOM of the Barcode
|
static |
Indicates no HRI on the Barcode
|
static |
Indicates HRI on TOP of the Barcode
|
static |
Indicates HRI on TOP and BOTTOM of the Barcode
|
static |
Indicates to print a AZTEC Barcode 2D
|
static |
Indicates to print a CODEBAR Barcode
|
static |
Indicates to print a CODE128 Barcode
|
static |
Indicates to print a CODE32 Barcode
|
static |
Indicates to print a CODE39 Barcode
|
static |
Indicates to print a CODE93 Barcode
|
static |
Indicates to print a DATAMATRIX Barcode 2D
|
static |
Indicates to print a EAN13 Barcode
|
static |
Indicates to print a EAN8 Barcode
|
static |
Indicates to print a ITF Barcode
|
static |
Indicates to print a PDF417 Barcode 2D
|
static |
Indicates to print a QRCODE Barcode 2D
|
static |
Indicates to print a UPCA Barcode
|
static |
Indicates to print a UPCE Barcode
|
static |
Indicates the request of the number of recharge of the battery
|
static |
Indicates the request of the SERIAL NUMBER of the battery
|
static |
Indicates the request of the state of the battery
|
protected |
|
static |
Indicates that the cash drawer selected is DRW1
|
static |
Indicates that the cash drawer selected is DRW2
|
static |
Indicates that the communication port is a BLUETOOTH
|
static |
Indicates that the communication port is a BLUETOOTH LOW ENERGY (BLE)
|
static |
Indicates that the communication port is a COM/TTY
|
static |
Indicates that the communication port is a ETHERNET / WIFI
|
static |
Indicates that the communication port is a USB
|
static |
Indicates to perform a Partial Cut
|
static |
Indicates to perform a Total Cut
|
static |
Indicates the request of the SERIAL NUMBER of the device
|
static |
Indicates to perform a Eject
|
static |
Indicates to perform a Retract
|
static |
Indicates that the Picture Justification is Center
|
static |
Indicates that the Picture Justification is Left
|
static |
Indicates that the Picture Justification is Right
|
static |
Indicates that the Image will be converted to Black / White using Dithering way
|
static |
Indicates that the Image will be converted to Black / White using Threshold way
|
static |
Indicates that the Picture will be No scaling. Excess size will be ignored
|
static |
Indicates that the Picture will be Scale to fit the paper width
|
static |
Indicates that the Picture will be Scale the image to width given by width parameter
|
static |
Indicates to perform a Paper alignment under the cutting line
|
static |
Indicates to perform a Paper alignment under the printing line
|
static |
Indicates that the Scanner will automatically eject the paper after the scan
|
static |
Indicates that the Scanner will automatically hold the paper after the scan
|
static |
Indicates that the Scanner will automatically retract the paper after the scan
|
static |
Indicates that the Scanner will perform a eject
|
static |
Indicates that the Scanner will perform a retract
|
static |
Indicates that the Scanner Feeder is Disable
|
static |
Indicates that the Scanner Feeder is Enable
|
static |
Indicates that the Image will be in Black & White (1bit)
|
static |
Indicates that the Image will be in grayscale with 256 gray levels (8 bits)
|
static |
Indicates that the Scanner doesn't search anything
|
static |
Indicates that the Scanner will search the barcode
|
static |
Indicates that the Scanner will search the card
|
static |
Indicates that the Scanner will search the card and barcode
|
static |
Indicates the library cleans all the print data stored
|
static |
Indicates the library stop to store and prints all the print data stored
|
static |
Indicates the library will buffer the print data until the function is called with the TP_TRANSACTION_STOP or TP_TRANSACTION_PRINT
|
static |
Indicates the library stop to store the print data